<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>XenC: Wfile Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">XenC
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">Open-source tool for data selection in NLP</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_wfile-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Wfile Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Class handling a file with values intended at weighting XenC scores.  
 <a href="class_wfile.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="wfile_8h_source.html">wfile.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a49f0711a359c4a728974f1d5e017f119"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_wfile.html#a49f0711a359c4a728974f1d5e017f119">Wfile</a> ()</td></tr>
<tr class="memdesc:a49f0711a359c4a728974f1d5e017f119"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default constructor.  <a href="#a49f0711a359c4a728974f1d5e017f119">More...</a><br /></td></tr>
<tr class="separator:a49f0711a359c4a728974f1d5e017f119"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5371e7261937a698f411796cd24d135a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_wfile.html#a5371e7261937a698f411796cd24d135a">initialize</a> (boost::shared_ptr&lt; <a class="el" href="class_xen_file.html">XenFile</a> &gt; ptrFile)</td></tr>
<tr class="memdesc:a5371e7261937a698f411796cd24d135a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialization function from an already instanciated <a class="el" href="class_xen_file.html" title="Class providing some basic functions around files. ">XenFile</a>.  <a href="#a5371e7261937a698f411796cd24d135a">More...</a><br /></td></tr>
<tr class="separator:a5371e7261937a698f411796cd24d135a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab2416b03f6f9c880283f99e61acccb0d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_wfile.html#ab2416b03f6f9c880283f99e61acccb0d">~Wfile</a> ()</td></tr>
<tr class="memdesc:ab2416b03f6f9c880283f99e61acccb0d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default destructor.  <a href="#ab2416b03f6f9c880283f99e61acccb0d">More...</a><br /></td></tr>
<tr class="separator:ab2416b03f6f9c880283f99e61acccb0d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a16f2d97788cc1465e902073dca6d0bf8"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_wfile.html#a16f2d97788cc1465e902073dca6d0bf8">getWeight</a> (int n)</td></tr>
<tr class="memdesc:a16f2d97788cc1465e902073dca6d0bf8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Accessor to the nth weight of the file.  <a href="#a16f2d97788cc1465e902073dca6d0bf8">More...</a><br /></td></tr>
<tr class="separator:a16f2d97788cc1465e902073dca6d0bf8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a481ea084ad9b6b89fb5777ec7221494e"><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_wfile.html#a481ea084ad9b6b89fb5777ec7221494e">getSize</a> () const </td></tr>
<tr class="memdesc:a481ea084ad9b6b89fb5777ec7221494e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Accessor to the size of the weights file.  <a href="#a481ea084ad9b6b89fb5777ec7221494e">More...</a><br /></td></tr>
<tr class="separator:a481ea084ad9b6b89fb5777ec7221494e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Class handling a file with values intended at weighting XenC scores. </p>
<p>The values file should contain one value per line, these values can also be in the log domain. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a49f0711a359c4a728974f1d5e017f119"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Wfile::Wfile </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Default constructor. </p>

</div>
</div>
<a class="anchor" id="ab2416b03f6f9c880283f99e61acccb0d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Wfile::~Wfile </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Default destructor. </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a481ea084ad9b6b89fb5777ec7221494e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int Wfile::getSize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Accessor to the size of the weights file. </p>
<dl class="section return"><dt>Returns</dt><dd>the size of the weights file </dd></dl>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="class_wfile_a481ea084ad9b6b89fb5777ec7221494e_cgraph.png" border="0" usemap="#class_wfile_a481ea084ad9b6b89fb5777ec7221494e_cgraph" alt=""/></div>
<map name="class_wfile_a481ea084ad9b6b89fb5777ec7221494e_cgraph" id="class_wfile_a481ea084ad9b6b89fb5777ec7221494e_cgraph">
<area shape="rect" id="node2" href="class_xen_i_o.html#ad087c0895d023a9ff0c0a1f794854b5d" title="Reads a file (plain text/gzipped) " alt="" coords="190,12,283,37"/>
<area shape="rect" id="node4" href="namespace_xen_common.html#aadf35ed2e4ebb9b556cda62563888113" title="Template converting a value (generally a string) into an double. " alt="" coords="156,61,316,87"/>
<area shape="rect" id="node3" href="struct_xen_common_1_1_xen_c_eption.html#a32ca1dc358f84de4e63d73c72e318c42" title="Accessor to the exception message. " alt="" coords="364,5,542,44"/>
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a16f2d97788cc1465e902073dca6d0bf8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double Wfile::getWeight </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>n</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Accessor to the nth weight of the file. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">n</td><td>: the number of the weight line in the file </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the requested weight </dd></dl>

</div>
</div>
<a class="anchor" id="a5371e7261937a698f411796cd24d135a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wfile::initialize </td>
          <td>(</td>
          <td class="paramtype">boost::shared_ptr&lt; <a class="el" href="class_xen_file.html">XenFile</a> &gt;&#160;</td>
          <td class="paramname"><em>ptrFile</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initialization function from an already instanciated <a class="el" href="class_xen_file.html" title="Class providing some basic functions around files. ">XenFile</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ptrFile</td><td>: the weights file </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>include/<a class="el" href="wfile_8h_source.html">wfile.h</a></li>
<li>src/<a class="el" href="wfile_8cpp.html">wfile.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Mar 18 2016 17:22:37 for XenC by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
